<%--
    Document   : view fragment for notification template
    Created on : 4/29/2014
    Author     : Anton Strack
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<article id="${bean.id}" class="panel">
    <div class="panel-heading"><h3 class="panel-title">${bean.name}</h3></div>
    <div class="panel-body">
        <p>This notification is triggered when: a ${bean.getDerivedValue("SubjectStateName")} ${bean.getDerivedValue("SubjectResourceTypeName")} is ${bean.getDerivedValue('ActionName')}</p>
        <p>Recipients of this notification will receive the following message.</p>
        <p class='csd_description'>
            ${bean.message}
        </p>
    </div>
    <div class="panel-footer">
        <p>Created By: ${bean.getDerivedValue("CreatedByName")} on <csd:displayTimestamp timestamp="${bean.createdDate}"></csd:displayTimestamp>
    </p><p><a href="${req.contextPath}?action=delete&resource=notificationtemplate&id=${bean.id}">Delete Notification Template</a> | <a href="${req.contextPath}?action=update&resource=notificationtemplate&id=${bean.id}">Update Notification Template</a></p>
</div>
</article>

